package com.sxy.demo.sxy;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 营销活动商品互斥
 *
 * @Auther: zhangling
 * @Date: 2022/10/18 20:43
 * @Description:
 */
@Data
@TableName("rms_activity_mutual")
/**
 * 		select
 * 		source_id as sourceId,
 * 		activity_id as activityId,
 * 		goods_spu_id as goodsSpuId,
 * 		goods_sku_id as goodsSkuId,
 * 		start_time as startTime,
 * 		end_time as endTime
 * 		from rms_activity_mutual
 * 		where goods_spu_id in
 *         <foreach collection="spuIdList" item="spuId" open="(" separator="," close=")">
 *             #{spuId}
 *         </foreach>
 * 		and state = 1
 * 		and deleted = 0
 * 		and ((start_time is null and end_time is null) or (#{nowTime} > start_time and end_time > #{nowTime}))
 */
public class ActivityMutual extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -2852453730044802146L;
    /**
     * 活动ID
     */
    private Long activityId;
    /**
     * 活动来源ID
     */
    private Long sourceId;
    /**
     * 编码
     */
    private String defineCode;
    /**
     * SUP ID
     */
    private Long goodsSpuId;
    /**
     * SUP CODE
     */
    private String goodsSpuCode;
    /**
     * 库存ID
     */
    private Long goodsSkuId;
    /**
     * sku编码
     */
    private String goodsSkuCode;
    /**
     * 开始时间
     */
    private Date startTime;
    /**
     * 结束时间
     */
    private Date endTime;
    /**
     * 0:无效 1:有效
     */
    private Byte state;


    /**
     *
     * ---------------------------------依赖实体---------------------------------
     *
     *
     */
    /**
     * @see ActivityMutual#activityId
     * @see ActivityMutual#goodsSpuId
     */
    private List<ActivityRecallUserRecordDO> activityRecallUserRecordDOList;

    /**
     * @see ActivityMutual#activityId
     */
    private List<ActivityProductSpecDO> activityProductSpecDOList;

    /**
     * @see ActivityMutual#activityId
     */
    private List<ActivityGoodsBidding> activityGoodsBiddings;

}
